package link.ahsj.xssdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author Eastern unbeaten
 * @Email chenshiyun2011@163.com 
 * @Date 2020/3/1 12:31 上午
 */
@RestController
public class WebController {


    @RequestMapping("/")
    public ModelAndView index(ModelAndView mv,String name) {
        //表单还是返回这里,同一个页面返回,懒人
        mv.addObject("name", name);
        mv.setViewName("index");
        return mv;
    }


}
